/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package client;

import commun.Message;
import java.rmi.Remote;
import java.rmi.RemoteException;
import user.User;

/**
 *
 * @author Qiao Bingzhi
 */
public interface ClientOd extends Remote {

    /**
     * User receive a message from an other user.
     * @param id the id of the sender
     * @param message the message sended by the sender
     * @return true if user receive the message, otherwise false
     * @throws RemoteException
     */
    public boolean ReceiveMessage(Message message) throws RemoteException;

    public void serverShutup() throws RemoteException;

    public void IDReLogin() throws RemoteException;

    public void addUser(User user) throws RemoteException;

    public boolean sendFriendlist(User[] users) throws RemoteException;
}
